/**
 * JAVACC DEMO 1.0
 * @copy right dwusoft company All rights reserved. 
 * @Package com.dwusoft.spts.funds.vo  
 */
package com.apache.funds.vo;

import com.apache.funds.common.NumberUtil;

/**
 * description:  
 * @author goldocean 创建时间：2014-11-26  
 * 
 */
public class UserFundsVo implements java.io.Serializable {

	private static final long serialVersionUID = 3479027141221754054L;
	private String userId;
	private Long m1;//可用
	private Long m2;//冻结
	private Long m3;//T+N
	private Long m4;//应收
	private Long m5;//应付
	private Long m6;//手续费
	private String captionId1;
	private String captionId2;
	private String captionId3;
	private String captionId4;
	private String captionId5;
	private String captionId6;
	
	private Long amtTotal;//总的余额=(m1+m2)
	private Long amtOut;//可出金额=[m1-(m3+m4)]

	
	
	public Long getAmtTotal() {
		return NumberUtil.add(this.m1, this.m2);//总的余额=(m1+m2)
	}

//	public void setAmtTotal(Long amtTotal) {
//		this.amtTotal = amtTotal;
//	}

	public Long getAmtOut() {
		return NumberUtil.sub(this.m1,NumberUtil.add(this.m3, this.m4));//可出金额=[m1-(m3+m4)]
	}

//	public void setAmtOut(Long amtOut) {
//		this.amtOut = amtOut;
//	}

	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	public Long getM1() {
		return m1;
	}

	public void setM1(Long m1) {
		this.m1 = m1;
	}

	public Long getM2() {
		return m2;
	}

	public void setM2(Long m2) {
		this.m2 = m2;
	}

	public String getCaptionId1() {
		return captionId1;
	}

	public void setCaptionId1(String captionId1) {
		this.captionId1 = captionId1;
	}

	public String getCaptionId2() {
		return captionId2;
	}

	public void setCaptionId2(String captionId2) {
		this.captionId2 = captionId2;
	}

	public Long getM3() {
		return m3;
	}

	public void setM3(Long m3) {
		this.m3 = m3;
	}

	public Long getM4() {
		return m4;
	}

	public void setM4(Long m4) {
		this.m4 = m4;
	}

	public Long getM5() {
		return m5;
	}

	public void setM5(Long m5) {
		this.m5 = m5;
	}

	public Long getM6() {
		return m6;
	}

	public void setM6(Long m6) {
		this.m6 = m6;
	}

	public String getCaptionId3() {
		return captionId3;
	}

	public void setCaptionId3(String captionId3) {
		this.captionId3 = captionId3;
	}

	public String getCaptionId4() {
		return captionId4;
	}

	public void setCaptionId4(String captionId4) {
		this.captionId4 = captionId4;
	}

	public String getCaptionId5() {
		return captionId5;
	}

	public void setCaptionId5(String captionId5) {
		this.captionId5 = captionId5;
	}

	public String getCaptionId6() {
		return captionId6;
	}

	public void setCaptionId6(String captionId6) {
		this.captionId6 = captionId6;
	}
	
	@Override
	public String toString() {
		StringBuffer sb = new StringBuffer();
		sb.append("userId=" + this.userId + ";");
		sb.append("m1=" + this.m1 + ";");
		sb.append("m2=" + this.m2 + ";");
		sb.append("m3=" + this.m3 + ";");
		sb.append("m4=" + this.m4 + ";");
		sb.append("m5=" + this.m5 + ";");
		sb.append("m6=" + this.m6 + ";");
		sb.append("amtTotal=" + this.amtTotal + ";");
		sb.append("amtOut=" + this.amtOut + ";");
		sb.append("captionId1=" + this.captionId1 + ";");
		sb.append("captionId2=" + this.captionId2 + ";");
		sb.append("captionId3=" + this.captionId3 + ";");
		sb.append("captionId4=" + this.captionId4 + ";");
		sb.append("captionId5=" + this.captionId5 + ";");
		sb.append("captionId6=" + this.captionId6 + ";");
		return sb.toString();
	}

}

